package cn.starlightsoftware.sherly.validation;

import javax.validation.Constraint;
import java.lang.annotation.*;

/**
 * @author 谷子毅
 * @date 2024/4/27
 */
@Target({
        ElementType.METHOD,
        ElementType.FIELD,
        ElementType.ANNOTATION_TYPE,
        ElementType.CONSTRUCTOR,
        ElementType.PARAMETER,
        ElementType.TYPE_USE
})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = PhoneValidator.class
)
public @interface Phone {
}
